import request from '@/utils/request'

// 添加一条人员拓展记录
export const addUserExtend = (data) => {
  return request({
    url: '/v1/departmentWork/workSetting/userExtend/',
    method: 'post',
    data
  })
}

// 查询人员拓展记录
export const getUserExtend = (params) => {
  return request({
    url: '/v1/departmentWork/workSetting/userExtend/',
    method: 'get',
    params
  })
}

// 查询一个人员的品种记录（无user参数则查询自身）
export const getUserVariety = (params) => {
  return request({
    url: '/v1/departmentWork/workSetting/userVariety/',
    method: 'get',
    params
  })
}

// 保存一个人员的品种记录
export const saveUserVariety = (data) => {
  return request({
    url: '/v1/departmentWork/workSetting/userVariety/',
    method: 'post',
    data
  })
}

// 添加一个工作品种
export const addWorkVareity = (data) => {
  return request({
    url: '/v1/departmentWork/workSetting/variety/',
    method: 'post',
    data
  })
}

// 查询工作品种列表
export const getWorkVareity = () => {
  return request({
    url: '/v1/departmentWork/workSetting/variety/',
    method: 'get'
  })
}

